//
//  ToolbarCallbackDecorator.h
//  XPComDemo
//
//  Created by Junjie Gong on 12-5-19.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

//#import <Foundation/Foundation.h>

#ifndef _TOOLBAR_CALLBACK_DECORATOR_
#define _TOOLBAR_CALLBACK_DECORATOR_

#include "IMyComponent.h"
#include "xpcom-config.h"
#include "nsCOMPtr.h"


class ToolbarCallbackDecorator
{
    
public:
    NS_DECL_NSTOOLBARCALLBACK
    ToolbarCallbackDecorator();
    int setCallback(nsToolbarCallback *callback);
    
    void* GetBrowserWindow();
    
private:
    // weak reference
    nsCOMPtr<nsToolbarCallback>  toolbarCallback;
    
    void* windowDelegate;
};

#endif

